
import pandas as pd
# 显示所有列
pd.set_option('display.max_columns', None)
# 显示所有行
pd.set_option('display.max_rows', None)
# 不换行
pd.set_option('display.width', 1800)

import numpy as np
np.set_printoptions(threshold=np.inf)
# 若想不以科学计数显示
np.set_printoptions(suppress=True)

from comm import Config
from futu import *

from broker.futu.Api import Trade


if __name__ == '__main__':
    Trade.get_acc_list()
    Trade.accinfo_query()

    code = "HK.00700"
    price = 400
    Trade.acctradinginfo_query(code, price)

    Trade.position_list_query(code)

    code_list = ['HK.00700', 'HK.09988']
    Trade.get_margin_ratio(code_list)